﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using K.Contract;
using K.EnterpriseLibary;
namespace K.Service
{
    public class RealCartonService : ICartonProcess
    {
        //真正的服务采用单例模式，故这类的服务设定为两层
        private static readonly CartonService _cartonService = CartonService.GetInstance();
        private Carton _carton;

        public Carton carton
        {
            get
            {
                return _carton;
            }
            set
            {
                _carton = value;
            }
        }

        #region ICartonProcess 成員

        public Carton SelectCarton(Carton carton)
        {
            return _cartonService.SelectCarton(carton);
        }

        #endregion
    }
}
